using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Collections.Specialized;
using System.Web.UI;
using System.Web.UI.WebControls.WebParts;
using System.Xml;
using System.IO;
using System.Runtime.Serialization;

namespace TST.SharePoint.Shared
{
    [Serializable()]
    public class FilterValue : IIdentifiable<string>
    {
        private string _id;
        private object _value;

        protected FilterValue()
        {
        }

        public FilterValue(object value)
        {
            if (value != null)
            {
                _id = value.ToString();
                _value = value;
            }
        }

        public object Value
        {
            get { return _value; }
            set { _value = value; }
        }

        #region IIdentifiable<string> Members

        public string Id
        {
            get { return _id; }
        }

        #endregion
    }

}
